package cn.crm.controller;

import java.awt.image.renderable.RenderableImage;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.crm.Service.IProductService;
import cn.crm.common.ServerResponse;

@Controller
@RequestMapping(value="echarts")
public class EChartsController {
	
	@Autowired
	private IProductService productService;

	@RequestMapping(value="toproductcountpage")
	public String toproduct(){
		return "product/product_count";
	}
	
	@RequestMapping(value="getproductcount")
	@ResponseBody
	public ServerResponse echarts(){
		return productService.getproductcount();
	}
}
